package com.atguigu.spzx.cart.client;

import com.atguigu.spzx.model.entity.h5.CartItem;
import com.atguigu.spzx.model.vo.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(value = "service-cart")
public interface CartClient {
    @GetMapping("/api/order/cart/auth/findCheckedCartItems")
    public Result<List<CartItem>> findCheckedCartItems();
    @DeleteMapping("/api/order/cart/auth/deleteCartItems")
    public Result deleteCartItems();
}
